import React from 'react'
import RoomInfo from '@/components/room/info'
import RoomConfirm from '@/components/room/confirm'
import RoomPay from '@/components/room/pay'
import HotelRate from '@/components/room/hotelrate'

const list = [
  {
    path: 'info',
    component: RoomInfo,
  },
  {
    path: 'confirm',
    component: RoomConfirm,
  },
  {
    path: 'pay',
    component: RoomPay,
  },
  {
    path: 'hotelrate',
    component: HotelRate,
  }
]


const Layout = () => <React.Router.Outlet />


const RouterList = [
  {
    path: '/room', 
    component: Layout, 
    children: list, 
  }
]

export default RouterList